package com.elem.service;

import com.elem.bean.DeliveryAddress;

import java.util.List;

public interface DeliveryAddressService {
//    大体和Dao层的方法一致，但是没有返回值，因为返回值是实体类，而实体类没有对应的Dao层，所以没有对应的方法
//    获取用户手机号
public DeliveryAddress getDeliveryAddressById(String daId)throws Exception;
    // 保存用户收货地址
    public int saveDeliveryAddress(DeliveryAddress deliveryAddress)throws Exception;
    //   获取用户所有的收货地址
    public List<DeliveryAddress> listDeliveryAddressByUserId(String userId)throws Exception;
    //   删除用户收货地址
    public int removeDeliveryAddress(DeliveryAddress deliveryAddress)throws Exception;
    //   修改用户收货地址
    public int updateDeliveryAddress(DeliveryAddress deliveryAddress)throws Exception;




}
